package com.draem0507.refactor;

/**
 * @title 下移方法
 * @desc
 * @atuh lwx
 * @createtime on 2015/11/13 10:32
 */
public class Day_4 {


    abstract class Animal {
        //狗吠
        public void Bark() {
            // code to bark
        }
    }

    class Dog extends Animal {
    }

    class Cat extends Animal {
    }

    abstract class Animal1 {

    }

    class Dog1 extends Animal1 {

        //狗吠
        public void Bark() {
            // code to bark
        }
    }

    class Cat1 extends Animal1 {
    }

}
